home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / osr5 / shells / zsh-3.1.4 / cntl / ccs
Encoding:
Text File  |  1998-07-26  |  446 b   |  29 lines

  1.  
  2. scriptname="$0"
  3. step="$1"
  4. keywords="$2"
  5. pkglist="$3"
  6.  
  7. # Source in the standard functions library, ccsSetup.sh
  8. . ccsSetup.sh
  9.  
  10. doPostExport() {
  11.     echo "/bin/zsh" >> /etc/shells
  12. }
  13.  
  14. doPostUnExport() {
  15.     grep -v /bin/zsh /etc/shells > /tmp/ccs$$
  16.         cp /tmp/ccs$$ /etc/shells
  17.         rm -f /tmp/ccs$$
  18. }
  19.  
  20. ccs_return_value=0
  21.  
  22. case "$step" in
  23.         POST_EXPORT) doPostExport ;;
  24.         POST_UNEXPORT) doPostUnExport ;;
  25. esac
  26.  
  27. exit $ccs_return_value
  28.  
  29.